package game.module.ddz;

public class DdzConstants {

	public static final int DDZ_CARD_SIZE = 54;
	
	public static final byte CT_ERROR				=	0	;								//错误类型
	public static final byte CT_SINGLE				=	1	;								//单牌类型
	public static final byte CT_DOUBLE				=	2	;								//对牌类型
	public static final byte CT_THREE				=	3	;								//三条类型
	public static final byte CT_SINGLE_LINE			=	4	;								//单连类型
	public static final byte CT_DOUBLE_LINE			=	5	;								//对连类型
	public static final byte CT_THREE_LINE			=	6	;								//三连类型
	public static final byte CT_THREE_TAKE_ONE		=	7	;								//三带一单
	public static final byte CT_THREE_TAKE_TWO		=	8	;								//三带一对
	public static final byte CT_FOUR_TAKE_ONE		=	9	;								//四带两单
	public static final byte CT_FOUR_TAKE_TWO		=	10	;								//四带两对
	public static final byte CT_BOMB_CARD			=	11	;								//炸弹类型
	public static final byte CT_MISSILE_CARD		=	12	;								//火箭类型

	public static final byte[] cardData = new byte[]{
		0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0A,0x0B,0x0C,0x0D,	//方块 A - K
		0x11,0x12,0x13,0x14,0x15,0x16,0x17,0x18,0x19,0x1A,0x1B,0x1C,0x1D,	//梅花 A - K
		0x21,0x22,0x23,0x24,0x25,0x26,0x27,0x28,0x29,0x2A,0x2B,0x2C,0x2D,	//红桃 A - K
		0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x3A,0x3B,0x3C,0x3D,	//黑桃 A - K
		0x4E,0x4F															//正负司令
	};
	
	//数目定义
	public static final int MAX_COUNT	=				20;									//最大数目
	public static final int FULL_COUNT =				54;									//全牌数目

	//逻辑数目
	public static final int NORMAL_COUNT =					17;									//常规数目
	public static final int DISPATCH_COUNT =				51;									//派发数目
	public static final int GOOD_CARD_COUTN =				38;									//好牌数目

	
	//数值掩码
	public static final byte	MASK_COLOR = (byte) 0xF0;								//花色掩码
	public static final byte	MASK_VALUE = (byte) 0x0F;								//数值掩码

	//排序类型
	public static final byte ST_ORDER					=1;									//大小排序
	public static final byte ST_COUNT					=2;									//数目排序
	public static final byte ST_CUSTOM					=3;									//自定排序

	
}
